import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Content from '@/components/Content'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
    },{
      path: '/content',
      name: '通用配置',
      component: Content,
      type:'1',
      iconCls:"fa fa-cog fa-fw",
			
     	children:[
     		{
	     		path: '/personmanagement',
		      name: '人员管理',
		      component: (resolve) => require(['@/components/personManagement/personManagement'], resolve),
		      type:'1',
	     	},{
	     		path: '/ststemUserSetting',
		      name: '角色权限配置',
		      component: (resolve) => require(['@/components/systemSetting/systemUserSetting'], resolve),
		      type:'1',
		      
	     	},{
	     		path: '/divisionManagement',
		      name: '事业部管理',
		      component: (resolve) => require(['@/components/systemSetting/divisionManagement'], resolve),
		      type:'1',
		      
	     	},{
	     		path: '/branchSchoolManagement',
		      name: '分校信息管理',
		      component: (resolve) => require(['@/components/systemSetting/branchSchoolManagement'], resolve),
		      type:'1',
		      
	     	},{
	     		path: '/allwordbook',
		      name: '数据字典管理',
		      component: (resolve) => require(['@/components/dataWordBook/allWordBook'], resolve),
		      type:'1',
	     	},{
	     		path: '/datawordbook',
		      name: '数据模块编辑',
		      type:'1',
		      component: (resolve) => require(['@/components/dataWordBook/dataWordBook'], resolve),
	     	},{
	     		path: '/systemRegion',
		      name: '省市区管理页面',
		      component: (resolve) => require(['@/components/systemSetting/systemRegion'], resolve),
		      type:'1',
		      
	     	},{
	     		path: '/systemClockOn',
		      name: '添加学校管理页面',
		      component: (resolve) => require(['@/components/systemSetting/systemClockOn'], resolve),
		      type:'1',
		      
	     	},{
	     		path: '/systemMap',
		      name: '地图页面',
		      component: (resolve) => require(['@/components/systemSetting/systemMap'], resolve),
	     	},{
	     		path: '/schoolShowMap',
		      name: '学校分布展示页面',
		      component: (resolve) => require(['@/components/systemSetting/schoolShowMap'], resolve),
		      type:'1',
		      
	     	},{
	     		path: '/advisory',
		      name: '咨询管理',
		      component: (resolve) => require(['@/components/systemSetting/advisory'], resolve),
		      type:'1',
		      
	     	},
     	]
    },{
      path: '/content',
      name: '学生信息管理',
      component: Content,
      type:'1',
      iconCls:"fa fa-superpowers",
     	children:[
     		{
	     		path: '/checkSchool',
		      name: '选择学校',
		      component: (resolve) => require(['@/components/checkSchool/checkSchool'], resolve),
		      type:'1',
	     	},{
	     		path: '/searchStudentInfo',
		      name: '学生信息查询',
		      component: (resolve) => require(['@/components/checkSchool/searchStudentInfo'], resolve),
		      type:'1',
	     	},{
	     		path: '/automaticAllocation',
		      name: '自动分配',
		      component: (resolve) => require(['@/components/checkSchool/automaticAllocation'], resolve),
		      type:'1',
	     	},
	     	
     	]
    },{
      path: '/content',
      name: '数据字典配置',
      component: Content,
      iconCls:"fa fa-superpowers",
     	children:[
     		{
	     		path: '/allwordbook',
		      name: '数据字典管理',
		      component: (resolve) => require(['@/components/dataWordBook/allWordBook'], resolve),
	     	},
	     	{
	     		path: '/datawordbook',
		      name: '数据模块编辑',
		      component: (resolve) => require(['@/components/dataWordBook/dataWordBook'], resolve),
	     	},
     	]
    },{
      path: '/content',
      name: '试题系统',
      component: Content,
      iconCls:"fa fa-clipboard fa-lg",
     	children:[
	     	{
	     		path: '/testPaperLibrary',
		      name: '试卷库',
		      component: (resolve) => require(['@/components/testQuestion/testPaperLibrary'], resolve),
	     	},
	     	{
	     		path: '/itemBank',
		      name: '试题库',
		      component: (resolve) => require(['@/components/testQuestion/itemBank'], resolve),
		      
	     	},
	     	{
	     		path: '/itemBank/addItemBank',
		      name: '添加试题',
		      component: (resolve) => require(['@/components/testQuestion/addItemBank/addItemBankNav'], resolve),
		      children:[
			      {
							path: '/itemBank/addItemBank/addTestQm',
			      	name: '试题内容',
			      	component: (resolve) => require(['@/components/testQuestion/addItemBank/addTestQm'], resolve),			      	
			      }
		      ]
	     	},
	     	{
	     		path: '/itemBank/addPaper',
		      name: '添加试卷',
		      component: (resolve) => require(['@/components/testQuestion/addPaper/addPaper'], resolve),		
		      children:[
			      {
							path: '/itemBank/addPaper-step1',
			      	name: '选择试卷',
			      	component: (resolve) => require(['@/components/testQuestion/addPaper/step-1'], resolve),
			      	alias:"/itemBank/addPaper"
			      },
			      {
							path: '/itemBank/addPaper-step2',
			      	name: '选择试卷',
			      	component: (resolve) => require(['@/components/testQuestion/addPaper/step-2'], resolve),
			      	alias:"/itemBank/addPaper"
			      },
			      {
							path: '/itemBank/addPaper-step3',
			      	name: '组卷',
			      	component: (resolve) => require(['@/components/testQuestion/addPaper/step-3'], resolve),
			      	alias:"/itemBank/addPaper"
			      }
		      ]
	     	},
     	]
    },{
      path: '/content',
      name: '招生团队管理',
      component: Content,
      type:'1',
      iconCls:"fa fa-superpowers",
     	children:[
     		{
	     		path: '/enrollment',
		      name: '招生团队管理',
		      component: (resolve) => require(['@/components/Enrollment/Enrollment'], resolve),
		      type:'1',
	     	}
     	]
    },{
      path: '/content',
      name: '审批系统',
      component: Content,
      type:'1',
      iconCls:"el-icon-mobile-phone",
     	children:[
     		{
	     		path: '/approveSystemType',
		      name: '创建审批类型',
		      component: (resolve) => require(['@/components/approveSystem/approveSystemType'], resolve),
	     	},
	     	{
	     		path: '/showAllapprove',
		      name: '查看审批',
		      component: (resolve) => require(['@/components/approveSystem/showAllapprove'], resolve),
	     	},{
	     		path: '/approveSpecial',
		      name: '出差申请审批',
		      component: (resolve) => require(['@/components/approveSystem/approveSpecial'], resolve),
		      type:'1',
	     	},{
	     		path: '/approveSchoolSetting',
		      name: '校内面试设置',
		      component: (resolve) => require(['@/components/approveSystem/approveSchoolSetting'], resolve),
		      type:'1',
	     	},{
	     		path: '/approveSystemTemplate',
		      name: '创建审批模板',
		      component: (resolve) => require(['@/components/approveSystem/approveSystemTemplate'], resolve),
	     	}
     	]
    },{
      path: '/content',
      name: '资讯管理',
      component: Content,
      type:'1',
      iconCls:"fa fa-superpowers",
     	children:[
     		{
	     		path: '/information',
		      name: '资讯管理',
		      component: (resolve) => require(['@/components/information/information'], resolve),
		      type:'1',
	     	}
     	]
    },{
      path: '/content',
      name: '统计报表',
      component: Content,
      type:'1',
      iconCls:"fa fa-superpowers",
     	children:[
     		{
	     		path: '/Statistics',
		      name: '面试统计',
		      component: (resolve) => require(['@/components/Statistics/faceStatistics'], resolve),
		      type:'1',
	     	},
	     	{
	     		path: '/enrollmentStatistics',
		      name: '招生统计',
		      component: (resolve) => require(['@/components/Statistics/enrollmentStatistics'], resolve),
		      type:'1',
	     	},{
	     		path: '/trajectory',
		      name: '招生轨迹',
		      component: (resolve) => require(['@/components/Statistics/trajectory'], resolve),
		      type:'1',
	     	},{
	     		path: '/attendance',
		      name: '考勤报表',
		      component: (resolve) => require(['@/components/Statistics/attendance'], resolve),
		      type:'1',
	     	},
     	]
    },{
      path: '/content',
      name: '日志',
      component: Content,
      type:'1',
      iconCls:"fa fa-superpowers",
     	children:[
     		{
	     		path: '/Log',
		      name: '日志管理',
		      component: (resolve) => require(['@/components/Log/Log'], resolve),
		      type:'1',
	     	}
     	]
    },
  ]
})
